import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    tabClick: 2, //二级导航当前位置
  },
  mutations: {
    changeTabClick(state, item) { //改变二级导航
      state.tabClick = item.id
    },
    initTabClick(state) {
      state.tabClick = 2
    },
  },
  actions: {
  },
  modules: {
  }
})
